home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / CoreGateway / StaticLetter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  3.1 KB  |  93 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StaticLetter.h
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. #ifndef __STATICLETTER__
  15. #define __STATICLETTER__
  16.  
  17. #ifndef    __LETTER__
  18. #include "Letter.h"
  19. #endif
  20.  
  21. #ifndef    __OCEOBJECTS__
  22. #include "OCEObjects.h"
  23. #endif
  24.  
  25. #pragma push
  26. #pragma segment StaticLetter
  27.  
  28. /***********************************|****************************************/
  29.  
  30. class TStaticLetter : public TLetter
  31. {
  32. public:        TStaticLetter (
  33.                 TRecipient* to,
  34.                 TRecipient* from,
  35.                 const TRString& subject,
  36.                 const TRString& content );
  37.  
  38.             TStaticLetter (
  39.                 TRecipient* to,
  40.                 TRecipient* from,
  41.                 const TRString& subject,
  42.                 const TRString& content,
  43.                 const ResType templateType,
  44.                 short templateID );
  45.  
  46.     virtual ~TStaticLetter();
  47.  
  48.     virtual    Boolean                    LoadTemplate ( const ResType templateType, short templateID );
  49.     virtual    Boolean                    SetTemplateItem ( unsigned short zeroBasedItemIndex, const char* substituteData );
  50.     
  51.     virtual Boolean                 GetLetterID (BLJLetterID&) const;
  52.     virtual Boolean                 GetReplyID (BLJLetterID&) const;
  53.     virtual Boolean                 GetConversationID (BLJLetterID&) const;
  54.     virtual Boolean                 GetSendTimeStamp (BLJTime& sendTime) const;
  55.     virtual Boolean                 GetLetterPriority (TLetter::LetterPriority& priority) const;
  56.     virtual Boolean                 GetSubject (RString& subject) const;
  57.     virtual Boolean                 IsLetterAutoForwarded (Boolean& yesItIs) const;
  58.     virtual Boolean                 IsLetterAutoReply (Boolean& yesItIs) const;
  59.     virtual Boolean                 CanLetterBeAutoForwarded (Boolean& yesItCan) const;
  60.  
  61.     virtual unsigned short             GetRecipientCount(RecipientTypeSet recipientType) const;
  62.     virtual TRecipient*             GetRecipient (RecipientTypeSet recipientType, unsigned short index) const;
  63.     virtual Boolean                 GetRecipientStatus(RecipientTypeSet, unsigned short index, RecipientStatusSet&) const;
  64.     virtual Boolean                 SetRecipientStatus(RecipientTypeSet, unsigned short index, RecipientStatusSet);
  65.     virtual unsigned short             GetUnknownRecipientCount() const;
  66.  
  67.     virtual Boolean                 DeliveryReceiptRequested(Boolean &yesItIs) const;
  68.     virtual Boolean                 NonDeliveryReportRequested (Boolean& yesItIs) const;
  69.  
  70.     virtual unsigned long             GetContentTypeCount ( ) const;
  71.     virtual OSType                     GetContentType ( unsigned long i ) const;
  72.  
  73.     virtual unsigned long             GetSegmentCount( OSType contentType ) const;
  74.     virtual Boolean                 GetSegmentData( OSType contentType, unsigned long index, unsigned long offset,void *data, long& maximumDataSize ) const;
  75.     virtual Boolean                 GetSegmentInfo( OSType contentType, unsigned long index, BLJLetterBlockType& blockType, long& blockLength ) const;
  76.  
  77.     virtual TVirtualFolder*         GetEnclosuresFolder() const { return nil; };
  78.     virtual unsigned short             GetNestedLetterCount() const { return 0; };
  79.     virtual TLetter*                GetNestedLetter(unsigned short) const { return nil; };
  80.     
  81. private:    TRecipient*                fTo;
  82.             TRecipient*                fFrom;
  83.             TRString                fSubject;
  84.             TRString                fContent;
  85.             Handle                    fTemplate;
  86. };
  87.  
  88. /***********************************|****************************************/
  89.  
  90. #pragma pop
  91.  
  92. #endif    // __STATICLETTER__
  93.